package com.backstage.service.impl;

import com.backstage.dao.AdminMapper;
import com.backstage.pojo.Admin;
import com.backstage.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

    public Admin selectUserName(String name) {
        return adminMapper.selectByPrimaryKey(name);
    }

    public int updateLoginTime(Admin record){
        return adminMapper.updateByPrimaryKeySelective(record);
    }


}
